<html>
<head>
<title>CodePlex.WindowsLiveGadget.View</title>
<style>
  body {
    width:130;
    height:130;
    padding:5;
    margin:0;
    background:black;
  }
</style>

<script type="text/javascript">
function loadMain()
{
  System.Gadget.onDock = dock;

  System.Gadget.onUndock = unDock;

  dock();
}

function unDock()
{   
  document.body.style.width = 300;
  document.body.style.height = 300;
  document.getElementById('WpfFrame').width=
      290;
  document.getElementById('WpfFrame').height=
      290;
}

function dock()
{
  document.body.style.width=130;
  document.body.style.height=130;
  document.getElementById('WpfFrame').width=
      120;
  document.getElementById('WpfFrame').height=
      120;
}
</script>
</head>
 
<body onload="loadMain()">
  <iframe id="WpfFrame" 
          height="120" 
          width="120" 
          src="WLG.View.xbap"/>

</body>
</html>
